#pragma once
#include "williamsmachine.h"

#define F_PLAYBALL		0x80

class CSinistarMachine:public CWilliamsMachine
{
protected:
	u8 SinistarRAM[0x1000];
public:
	CSinistarMachine();
	~CSinistarMachine();
	int Init();
	void Reset();
	void Line(u32 mainc,u32 soundc,int irq);
	void SaveState(CState *s);
	void LoadState(CState *s);
	static void ProcessSound(void *user,void *data,int len);
	static u8 ReadMainCPU(void *user,u32 addr);
	static void WriteMainCPU(void *user,u32 addr,u8 data);
	static void OutputCA2(void *user,u8 data);
	static void OutputCB2(void *user,u8 data);
};
